@import 'ui-variables';

@CELL_PADDING: 4px;

.nuclide-vcs-log-spinner {
  margin-top: 2em;
  text-align: center;
}

.nuclide-vcs-log-scroll-container {
  height: 100%;
  overflow-y: scroll;
}

.nuclide-vcs-log-container {
  height: 100%;
  display: flex;
}

.nuclide-vcs-log-entries-container {
  overflow: scroll;
}

.nuclide-vcs-log-cell {
  font-family: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  padding: @CELL_PADDING;
  vertical-align: top;
  -webkit-user-select: text;
}

.nuclide-vcs-log-fixed-cell {
  white-space: nowrap;
}

.nuclide-vcs-log-header-cell {
  padding: @CELL_PADDING 6px;
}

.nuclide-vcs-log-date-cell {
  .nuclide-vcs-log-cell;
  .nuclide-vcs-log-fixed-cell;
  color: @text-color-info;
}

.nuclide-vcs-log-id-cell {
  .nuclide-vcs-log-cell;
  .nuclide-vcs-log-fixed-cell;
  color: @text-color-success;
}

.nuclide-vcs-log-differential-cell {
  .nuclide-vcs-log-cell;
  .nuclide-vcs-log-fixed-cell;
  color: @text-color-highlight;
  text-decoration: underline;
}

.nuclide-vcs-log-differential-cell-text {
  cursor: pointer;
}

.nuclide-vcs-log-author-cell {
  .nuclide-vcs-log-cell;
  .nuclide-vcs-log-fixed-cell;
}

.nuclide-vcs-log-summary-cell {
  .nuclide-vcs-log-cell;
  color: @text-color-highlight;
}

.nuclide-vcs-log-show-diff-cell {
  textAlign: center;
  width: 48px;
  .input-radio {
    margin: 0 4px;
    vertical-align: top;
  }
  .right-align {
    float: right;
  }
}

.nuclide-vcs-log-diff-container {
  display: flex;
}

.nuclide-vcs-log-editor-loading-indicator {
  align-items: center;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 0;
  width: 100%;
}

.nuclide-vcs-log-editor-loading {
  pointer-events: none;
  opacity: 0.5;
}

.nuclide-vcs-log-editor {
  width: 50%;
}
